summaryrefslogtreecommitdiff
path: root/frontend/app/v2/[...path]/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/v2/[...path]/page.tsx')
-rw-r--r--frontend/app/v2/[...path]/page.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/app/v2/[...path]/page.tsx b/frontend/app/v2/[...path]/page.tsx
index 4af0167..3b4cbb8 100644
--- a/frontend/app/v2/[...path]/page.tsx
+++ b/frontend/app/v2/[...path]/page.tsx
@@ -1,4 +1,5 @@
1import { V2DirectoryView } from "@/components/v2/V2DirectoryView" 1import { V2DirectoryView } from "@/components/v2/V2DirectoryView"
2import { Drive_ls } from "@/lib/drive_server"
2 3
3export default async function V2DirectoryPage({ 4export default async function V2DirectoryPage({
4 params, 5 params,
@@ -7,6 +8,7 @@ export default async function V2DirectoryPage({
7}) { 8}) {
8 const { path: pathSegments } = await params 9 const { path: pathSegments } = await params
9 const currentPath = '/' + (pathSegments?.join('/') || '') 10 const currentPath = '/' + (pathSegments?.join('/') || '')
10 11
11 return <V2DirectoryView path={currentPath} /> 12 const files = await Drive_ls(currentPath, false)
13 return <V2DirectoryView path={currentPath} files={files} />
12} \ No newline at end of file 14} \ No newline at end of file